﻿using System;
using Model.Base;
using Model.Config;
namespace Model.Cms
{
    /// <summary>
    /// 模型层，内容管理，新闻
    /// </summary>
    public class NewsInfo : BaseSystemInfo
    {
        /// <summary>
        /// 新闻编号
        /// </summary>
        public int NewsID { get; set; }
        /// <summary>
        /// 新闻类别
        /// </summary>
        public TermInfo NewsType { get; set; }
        /// <summary>
        /// 新闻标题
        /// </summary>
        public string NewsTitle { get; set; }
        /// <summary>
        /// 文件
        /// </summary>
        public string Filepath { get; set; }
        /// <summary>
        /// 新闻简介
        /// </summary>
        public string NewsSummary { get; set; }
        /// <summary>
        /// 新闻内容
        /// </summary>
        public string NewsContent { get; set; }
        /// <summary>
        /// 链接
        /// </summary>
        public string NewsLink { get; set; }
        /// <summary>
        /// 是否推荐
        /// </summary>
        public string Recommend { get; set; }
        /// <summary>
        /// 作者
        /// </summary>
        public string Author { get; set; }
    }

    /// <summary>
    /// 模型层，内容管理，新闻搜索
    /// </summary>
    public class NewsCondition : BaseSystemCondition 
    {
        /// <summary>
        /// 新闻类别编号
        /// </summary>
        public int NewsTypeID { get; set; }

        /// <summary>
        /// 新闻类别术语
        /// </summary>
        public string NewsTypeLabel { get; set; }

        /// <summary>
        /// 父级计数
        /// </summary>
        public int ParentTermID { get; set; }

        /// <summary>
        /// 年份
        /// </summary>
        public string Year { get; set; }
    }
}
